﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FDStudio.Core.Entities
{
    /*
     CreatedOn: 2018-01-25
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// api请求结果
    /// </summary>
    public class ApiResult : IApiResult
    {
        /// <summary>
        /// 成功码
        /// </summary>
        public static readonly int SuccessCode = 1000;
        /// <summary>
        /// 失败码
        /// </summary>
        public static readonly int ErrorCode = -1;

        public string Message { get; set; }

        public int Code { get; set; }

        public bool Success => Code == SuccessCode;
    }
}
